import request from '@/utils/request'

// 查询进程信息列表
export function listProgram(query) {
  return request({
    url: '/devops/program/list',
    method: 'get',
    params: query
  })
}

// 查询进程信息详细
export function getProgram(id) {
  return request({
    url: '/devops/program/' + id,
    method: 'get'
  })
}

// 新增进程信息
export function addProgram(data) {
  return request({
    url: '/devops/program',
    method: 'post',
    data: data
  })
}

// 修改进程信息
export function updateProgram(data) {
  return request({
    url: '/devops/program',
    method: 'put',
    data: data
  })
}

// 删除进程信息
export function delProgram(id) {
  return request({
    url: '/devops/program/' + id,
    method: 'delete'
  })
}

// 导出进程信息
export function exportProgram(query) {
  return request({
    url: '/devops/program/export',
    method: 'get',
    params: query
  })
}